body {
    margin: 0;
    padding: 0;
    background: #1a1a2e;
    color: #e6e6e6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    gap: 20px;
}

.video-container {
    flex: 3;
    position: relative;
    background: #0d0d1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.overlay-stats {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.control-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #16213e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.d-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.d-pad > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrow-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: #0f3460;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.arrow-btn:active {
    background: #e94560;
    transform: scale(0.95);
}

.stop-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: #e94560;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.stop-btn:active {
    background: #c70039;
    transform: scale(0.95);
}

.config-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: auto;
}

.config-section label {
    display: block;
    margin: 10px 0 5px;
    font-size: 14px;
}

.config-section input[type="range"] {
    width: 100%;
    margin-bottom: 15px;
    accent-color: #e94560;
}

.connection-status {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

#status.connected {
    color: #4ade80;
}

#status.connecting {
    color: #fbbf24;
}

#status.disconnected {
    color: #ef4444;
}